package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongLiHouseRowMapper implements RowMapper<NanDongLiHouse> {
    @Override
    public NanDongLiHouse mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongLiHouse nd = new NanDongLiHouse();
        nd.setId(resultSet.getInt("id"));
        nd.setJw_name(resultSet.getString("jw_name"));
        nd.setPerson_name(resultSet.getString("person_name"));
        nd.setTel(resultSet.getString("tel"));
        nd.setNumber(resultSet.getString("number"));
        nd.setAddress(resultSet.getString("address"));
        nd.setType(resultSet.getString("type"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
